<h1> Notification </h1>
<?php
    if($notification){
        echo '<ul>';
        foreach( array_reverse($notification) as $row){
            echo '<li>';
            echo $row['user']->name." has sent ".$row['message']->subject." on " .$row['message']->date .'</BR>';
            echo '<label><a target="_blank" href='.base_url().'message/view_message_page/'.$row['user_message_map']->user_message_map_id.'>View</a></label>';//echo ' ';echo '<a href='.base_url().'>Mark as read</a>';
            echo '</li><br/>';
        }
        echo '</ul>';
    }
?>